package com.quanquan.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @ClassName:Square
 * @Description:TODO
 * @Author:xiongjunbao
 * @Date:2019/4/1 11:04
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "oo_square")
public class Square implements Serializable {

    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    @Column(name = "create_time", length = 32)
    private String createTime;
    @Column(name = "update_time", length = 32)
    private String updateTime;
    /**
     * 0有效 1无效
     */
    @Column(name = "status", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer status;

    /**
     * 商城当天商品可兑换次数
     */
    private Integer count;

}
